home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / comms / netsoftware / amitcp_mail.lha / mail / mail.h < prev   
C/C++ Source or Header  |  1994-03-06  |  3KB  |  135 lines

  1. #ifndef MAIL_H
  2. #define MAIL_H
  3.  
  4. /*
  5.     Simple SMTP mail sender.
  6.  
  7.     Copyright 1993 Stephen Norris.
  8.  
  9.     $Revision: 1.13 $
  10.  
  11.     $Log: mail.h,v $
  12.  * Revision 1.13  1993/12/12  14:20:28  srn
  13.  * Minor changes...
  14.  *
  15.  * Revision 1.12  1993/12/01  09:38:38  srn
  16.  * Checked in for beginning 1.7 release.
  17.  *
  18.  * Revision 1.11  1993/11/24  23:07:23  srn
  19.  * SOrted out NOSIG stuff.
  20.  *
  21.  * Revision 1.11  1993/11/24  23:07:23  srn
  22.  * SOrted out NOSIG stuff.
  23.  *
  24.  * Revision 1.10  1993/11/24  09:53:44  srn
  25.  * Now appends .sig before editing.
  26.  *
  27.  * Revision 1.10  1993/11/24  09:53:44  srn
  28.  * Now appends .sig before editing.
  29.  *
  30.  * Revision 1.9  1993/11/22  21:59:53  srn
  31.  * Added editor support.
  32.  *
  33.  * Revision 1.9  1993/11/22  21:59:53  srn
  34.  * Added editor support.
  35.  *
  36.  * Revision 1.8  1993/11/22  19:29:36  srn
  37.  * Added code for sig files.
  38.  *
  39.  * Revision 1.7  1993/11/21  18:04:32  srn
  40.  * Added #defines for argument numbers.
  41.  *
  42.  * Revision 1.7  1993/11/21  18:04:32  srn
  43.  * Added #defines for argument numbers.
  44.  *
  45.  * Revision 1.6  1993/11/19  22:20:26  srn
  46.  * *** empty log message ***
  47.  *
  48.  * Revision 1.6  1993/11/19  22:20:26  srn
  49.  * *** empty log message ***
  50.  *
  51.  * Revision 1.5  1993/10/30  09:48:55  srn
  52.  * More arguments.  Reformated.
  53.  *
  54.  * Revision 1.5  1993/10/30  09:48:55  srn
  55.  * More arguments.  Reformated.
  56.  *
  57.  * Revision 1.4  1993/10/24  11:10:22  srn
  58.  * Added includes needed for V2.1 of Amitcp - it seems the network
  59.  * include files no longer include stdio.h or time.h...
  60.  *
  61.  * Revision 1.3  1993/10/20  22:37:46  srn
  62.  * Added some prototypes, though only for a few (1?) function.
  63.  *
  64.  * Revision 1.3  1993/10/20  22:37:46  srn
  65.  * Added some prototypes, though only for a few (1?) function.
  66.  *
  67.  * Revision 1.2  1993/10/20  20:27:09  srn
  68.  * Got error checking working.
  69.  *
  70.  * Revision 1.1  1993/10/16  11:19:10  srn
  71.  * Initial revision
  72.  *
  73.  * Revision 1.1  1993/10/16  11:19:10  srn
  74.  * Initial revision
  75.  *
  76. */
  77.  
  78. /* Network includes. */
  79. #include <bsdsocket.h>
  80. #include <errno.h>
  81. #include <lineread.h>
  82. #include <netdb.h>
  83. #include <sys/param.h>
  84. #include <sys/socket.h>
  85. #include <sys/ioctl.h>
  86. #include <netinet/in.h>
  87. #include <signal.h>
  88.  
  89. /* Amiga includes & prototypes. */
  90.  
  91. #include <exec/libraries.h>
  92. #include <dos/dos.h>
  93. #include <dos/dostags.h>
  94. #include <dos/var.h>
  95. #include <exec/execbase.h>
  96. #include <clib/dos_protos.h>
  97. #include <clib/socket_protos.h>
  98.  
  99. /* clib includes. */
  100.  
  101. #include <time.h>
  102. #include <stdio.h>
  103. #include <stdlib.h>
  104. #include <strings.h>
  105.  
  106. #include "t:DateHeader.h"
  107.  
  108. /* Error codes. */
  109. #define BAD_RESPONCE    1
  110. #define NOTEMP        2
  111.  
  112. /* Modes. */
  113. #define VERBOSE    1
  114.  
  115. /* Constants. */
  116. #define ARGCOUNT 8
  117. #define BUFSIZE 512
  118.  
  119. #define RECIPIENT    0
  120. #define REPLYTO    1
  121. #define SMTPHOST    2
  122. #define NOSIG    3
  123. #define VERBOSE    4
  124. #define NOSUBJ    5
  125. #define NOHEAD    6
  126. #define NOED    7
  127.  
  128. extern int    errno;
  129. extern void    _STDcloseSockets();
  130.  
  131. /* Prototypes. */
  132. void MailError(int   Type);
  133.  
  134. #endif
  135.